package com.neusoft.neu24.mapper;


import com.neusoft.neu24.entity.Member;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    //查询
    @Select("select * from tb_member where logid = #{uname}")
    Member findByUser(String uname);
    //新增
    @Insert("insert into tb_member(logid, logpwd,tel,gender)" +"values  (#{uname},#{psw},#{tel},#{gender})")
    void add(@Param("uname")String uname,@Param("psw")String psw,@Param("tel")String tel,@Param("gender")String gender);
}